package work.mediway.mdm.biz.dto.dict;

import java.util.List;
import java.util.Set;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import work.mediway.mdm.core.page.QueryRequest;

/**
 * @author zhongyj <1126834403@qq.com><br/>
 * @date 2020/12/17
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel
public class DictListDTO extends QueryRequest {

    @ApiModelProperty(value = "字典查询参数(为字典Code/字典Desc,可模糊匹配)")
    private String dictParam;

    @ApiModelProperty(value = "字典状态(0/1/-1),默认为1,表示有效", allowableValues = "1,0,-1", allowEmptyValue = true)
    private String dictStatus;

    @ApiModelProperty(value = "字典数量开始")
    private String dataCountStart;

    @ApiModelProperty(value = "字典数量结束")
    private String dataCountEnd;

    @ApiModelProperty(value = "字典分类", allowableValues = "0,1,2")
    private List<String> ctCategory;

    @ApiModelProperty(value = "角色id(若当前用户和用户都未传，默认查询当前用户)")
    private String roleId;

    @ApiModelProperty(value = "用户id(若当前用户和用户都未传，默认查询当前用户)")
    private String userId;

    @ApiModelProperty(value = "字典类型id")
    private Long typeId;

    @ApiModelProperty(value = "是否查询当前typeId下属所有id的数据(默认为false)", allowableValues = "true,false")
    private Boolean typeFlag;

    @ApiModelProperty(value = "字典类型id", hidden = true)
    private Set<Long> typeIds;

}
